#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project ：图灵学习 
@File    ：2.什么是可迭代对象.py
@IDE     ：PyCharm 
@Author  ：ChenLiGao
@Date    ：2024-10-23 15:28
'''
from typing import Iterable

"""
    可以被for循环执行的对象称之为可迭代对象
"""

nums = [1, 2, 3]

for num in nums:
    print(num)

student = "admin"
for i in student:
    print(i)

print(isinstance(student, Iterable))